import React,{ Component } from "react";


export default class Hello extends Component{
    state = {
        flag: true
    }

    changFlag = () => {
        this.setState({
            flag: !this.state.flag
        })
    }

    render() {
        let { flag } = this.state
        return (
            <div>
                {
                   flag&& <img src="https://n.sinaimg.cn/news_index/transform/175/w105h70/20220215/7662-447c62e940262a8693b3ea14761fd661.png" />
                }
            </div>
        )
    }
}

// export default function Hello() {
  

//     return (
//         <div>
          
//         </div>
//     )
// }